package com.hfdg.prototype.base.utils;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @ClassName TimeUtils
 * @Description TODO
 * @Author yuelh
 * @Date 2019/1/19 15:12
 * @Version 1.0
 * @Company 会飞的锅工作室
 **/
public class TimeUtils {
    public static String getTime(String pattern){
        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat(pattern);
        return sdf.format(date);
    }
}
